﻿using System.ComponentModel.DataAnnotations;

namespace Synthesize.BaseSet.ServiceInterface.Dtos.Authority.Login
{
    /// <summary>
    /// 用户登录信息传输实体类
    /// </summary>
    public class UserInfoLoginInput
    {
        /// <summary>
        /// 账号
        /// </summary>
        [Required(ErrorMessage = "登录账号不能为空")]
        public string UserName
        {
            get; set;
        }

        /// <summary>
        /// 客户端请求物理机唯一标识符
        /// </summary>
        [Required(ErrorMessage = "客户端请求物理机唯一标识符不能为空")]
        public string UniqueIdentifier
        {
            get; set;
        }

        /// <summary>
        /// 验证码
        /// </summary>
        [Required(ErrorMessage = "验证码不能为空")]
        public string VialdCode
        {
            get; set;
        }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        public string Password
        {
            get; set;
        }

        /// <summary>
        /// 平台授权码
        /// </summary>
        [Required(ErrorMessage = "平台授权码不能为空")]
        public string AppSecret
        {
            get; set;
        }
    }


    /// <summary>
    /// 刷新Token
    /// </summary>
    public class RefreshTokenInput
    {

        /// <summary>
        /// AccessToken
        /// </summary>
        [Required(ErrorMessage = "AccessToken不能为空")]
        public string AccessToken
        {
            get; set;
        }

        /// <summary>
        /// RefreshToken
        /// </summary>
        [Required(ErrorMessage = "RefreshToken不能为空")]
        public string RefreshToken
        {
            get; set;
        }
    }
}
